find number of function arguments